import {ref,watchEffect} from 'vue'
import * as Storage from '../utils/config'
export default function todoLists(){
    let todoLists = ref(Storage.getTodoList());
    watchEffect(()=>{
       debugger
        Storage.setTodoList(todoLists.value);
    })
    return {
        todoLists
    }
}